<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Expert extends Model
{
    use HasFactory;
    public function connection(){
        return $this->belongsToMany(Video::class,'comments','expert_id','video_id');
    }

    protected $table='expert';
    protected $fillable=[
        'name',
        'sex',
        'position',
        'department',
        'hospital',
        'introduction',
        'photo',
        'degree'

    ];
}
